﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace serie02_3_geometricObjects
{
    class Circle : GeometricObject
    {
        protected override void specialPaint(System.Windows.Forms.PaintEventArgs e)
        {
            // Pen + Rectangle
            System.Drawing.Pen pen = new System.Drawing.Pen(System.Drawing.Color.Blue);
            System.Drawing.Rectangle rect = new System.Drawing.Rectangle(1, 1, this.Width - 3, this.Height - 3);

            // Kreis
            e.Graphics.DrawEllipse(pen, rect);
        }
    }
}
